-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nsqd Authentication Support #72
Conversation
RFR here @mreiferson |
@@ -270,6 +277,7 @@ def _on_identify_response(self, data, **kwargs): | |||
self.off('response', self._on_identify_response) | |||
|
|||
if data == 'OK': | |||
logging.waring('nsqd version does not support feature netgotiation') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo for warning
the rest LGTM, but I still think we should finalize |
@@ -287,6 +297,9 @@ def _on_identify_response(self, data, **kwargs): | |||
self._features_to_enable.append('tls_v1') | |||
if self.snappy and data.get('snappy'): | |||
self._features_to_enable.append('snappy') | |||
|
|||
if data.get('auth_required'): | |||
self._authentication_required = True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these two lines can be simplified to self._authentication_required = data.get('auth_required', False)
naming suggestion applies here too, I think we should just run with |
merge me |
This is to go along with nsqio/nsq#356 and support Authentication in the client library
cc: @mreiferson